/*************************************************************************
	> File Name: client.cpp
	> Author: ma6174
	> Mail: ma6174@163.com 
	> Created Time: 2021年12月13日 星期一 18时26分23秒
 ************************************************************************/

#include <vector>
#include "person.h"
using namespace std;

int main()
{
	std::vector<Person*> v;

	Person* man1 = new Man();
	man1->setAction("成功");
	v.push_back(man1);

	Person* woman1 = new Woman();
	woman1->setAction("成功");
	v.push_back(woman1);

	Person* man2 = new Man();
	man2->setAction("失败");
	v.push_back(man2);

	Person* woman2 = new Woman();
	woman2->setAction("失败");
	v.push_back(woman2);

	Person* man3 = new Man();
	man3->setAction("恋爱");
	v.push_back(man3);

	Person* woman3 = new Woman("恋爱");
	v.push_back(woman3);

	for (auto elem : v)
	{
		elem->getConclusion();
		delete elem;
	}

	return 0;
}
